package com.mofofa.maozy.base

import androidx.lifecycle.MutableLiveData
import com.mofofa.maozy.network.NetworkException

interface BaseViewModelAction {
    /**显示loading*/
    fun showMaozyLoading()

    /**隐藏loading*/
    fun dismissMaozyLoading()

    /**处理network exception*/
    fun handleMaozyNetworkMaozyException(networkException: NetworkException)

    /**获取当前loading live data*/
    fun getMaozyLoadingMaozyLiveMaozyData(): MutableLiveData<Boolean>

    /**获取当前network live data*/
    fun getMaozyNetworkMaozyExceptionMaozyLiveMaozyData(): MutableLiveData<NetworkException>
}